package com.happy_hao.msg.service;

import com.happy_hao.msg.dto.EmailRequest;
import com.happy_hao.msg.dto.NoPeriodStartRequest;
import com.happy_hao.msg.dto.PeriodicSendRequest;
import com.happy_hao.msg.dto.SystemInfoRequest;
import jakarta.mail.MessagingException;
import jakarta.validation.Valid;

import java.io.UnsupportedEncodingException;

public interface EmailService {
    void instantSend(@Valid EmailRequest emailRequest) throws MessagingException, UnsupportedEncodingException;

    void newScheduledSend(@Valid EmailRequest emailRequest);
    String periodicSend(PeriodicSendRequest periodicSendRequest);
    void stopPeriodicSend(String taskId);
    String startEmailTask(NoPeriodStartRequest noPeriodStartRequest);
    void cancelEmailTask(String taskId);

    void systemInfo(SystemInfoRequest systemInfoRequest);
}
